<?php if($this->getErrors()): ?>
	<?php $errors = $this->getErrors(); ?>
	<div class="warnbox">
		<?php foreach($errors['messages'] as $key => $msg): ?>
			<div class="msg left <?php echo $key; ?>" title="<?php echo $msg; ?>"></div>
		<?php endforeach; ?>
		<?php if(!$this->helper('workbench')->getLogsEnabled()): ?>
			<div class="no-logging left" title="<?php echo $this->__('Logging is disabled. You can enable it by pressign LOG button above.'); ?>"></div>
		<?php endif; ?>
		<div id="refresh-logs" class="right" title="<?php echo $this->__('Check for new errors'); ?>"></div>
	</div>
	
	<?php if($errors['system']): ?>
	<div class="files">
		<div class="row1">
			<div class="description left">System log <span title="<?php echo $_COOKIE['system_filesize'] . ' bytes' ?>">[<?php echo $errors['system_file_size']; ?>]</span></div>
			<div class="file right" id="open-system-logs" title="<?php echo $this->__('Click to see what\'s in system log'); ?>">
		</div>
	</div>
	<?php endif; ?>
	
	<?php if($this->helper('workbench')->getReportCount()): ?>
		<div class="report-count" title="<?php echo $this->__('%s error reports found in var/report folder', $this->helper('workbench')->getReportCount()); ?>">
			<?php echo $this->__('%s error reports', $this->helper('workbench')->getReportCount()); ?>
		</div>
	<?php endif; ?>
<?php else: ?>
	<div class="warnbox no-errors">
		<?php if(!$this->helper('workbench')->getLogsEnabled()): ?>
			<div class="no-logging left" title="<?php echo $this->__('Logging is disabled. You can enable it by pressign LOG button above.'); ?>"></div>
		<?php endif; ?>
		<?php echo $this->__('No errors found'); ?>
		<div id="refresh-logs" class="right" title="<?php echo $this->__('Check for new errors'); ?>"></div>
	</div>
<?php endif; ?>
